<h2>
<?php if (count($torrents)): ?>
Torrents (<?php echo count($torrents); ?>)
<?php else: ?>
There is no uploaded torrents
<?php endif; ?>
</h2>
<?php foreach($torrents as $torrent): ?>
<?php $this->renderPartial('_torrent',array(
	'torrent'=>$torrent,
)); ?>
<?php endforeach; ?>

<br/>
<?php $this->widget('CLinkPager',array('pages'=>$pages)); ?>
